FUNCTION

current_rate_limit_points

function current_rate_limit_points(rate_limit_config: rate_limit_config, rl_state: rl_state, current_timestamp: integer): integer

Returns how many rate limit points are available to a certain rl_state given the current time.

Parameters

  • rate_limit_config — the configuration of the chain, extracted from the chromia.yml
  • rl_state — the state for the account to check
  • current_timestamp — the timestamp at which the checking is done
© 2024 Chromia